LDFLAGS			:=  -lm -lpthread
INCLUDE += -I./FolderInotify


TARGET			:= folderInotify
STRIP           = ls

OBJS = \
	./FolderInotify/FolderInotify.o\
	main.o

all:$(TARGET)

$(TARGET):$(OBJS)
	$(CXX) -O3  -o $@ $^ $(LDFLAGS) $(INCLUDE)
	$(STRIP) $@

%.o:%.cpp
	$(CXX) -c -O3 -o $@ $< $ $(LDFLAGS) $(INCLUDE)

%.o:%.c
	$(CC) -c -O3 -o $@ $< $ $(LDFLAGS) $(INCLUDE)

clean:
	@rm -rf *.o $(TARGET)